When the user opens another submenu, close the first one.
https://bugzilla.gnome.org/show_bug.cgi?id=702539
this.actor.reactive = true;
this._childMenus = [];
+ this._openedSubMenu = null;
+ },
+
+ _setOpenedSubMenu: function(submenu) {
+ if (this._openedSubMenu)
+ this._openedSubMenu.close(true);
+
+ this._openedSubMenu = submenu;
},
_boxGetPreferredWidth: function (actor, forHeight, alloc) {
this.actor.add_style_pseudo_class('open');
else
this.actor.remove_style_pseudo_class('open');
+
+ this._getTopMenu()._setOpenedSubMenu(this.menu);
},
destroy: function() {